import { createRouter, createWebHistory } from "vue-router";

// 定义路由组件
const Home = () => import("../views/Home.vue");
const About = () => import("../views/About.vue");

// 定义路由配置
const routes = [
  { path: "/", name: "Home", component: Home },
  { path: "/about", name: "About", component: About },
];

// 创建路由实例
const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
